package com.woniuxy.entity;

import com.woniuxy.intface.Person;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @Author：向天浩
 * @Date：2022/1/17 16:15
 * @Description :这个是实体类它实现了Person接口
 */

public class Chinse implements Person {
    int age;//基本
    String name;//String
    America america;//引用
    List List;//list集合
    List<Map> Map;//list中有map
    List<America>America;//list中有引用
    Map<String,String>String;//Map
    Set<Integer>Integer;//Set

    public Chinse() {
    }

    public Chinse(int age, java.lang.String name, com.woniuxy.entity.America america, java.util.List list, java.util.List<java.util.Map> map, java.util.List<com.woniuxy.entity.America> america1, java.util.Map<java.lang.String, java.lang.String> string, Set<java.lang.Integer> integer) {
        this.age = age;
        this.name = name;
        this.america = america;
        List = list;
        Map = map;
        America = america1;
        String = string;
        Integer = integer;
    }

    @Override
    public java.lang.String toString() {
        return "Chinse{" +
                "age=" + age +
                ", name='" + name + '\'' +
                ", america=" + america +
                ", List=" + List +
                ", Map=" + Map +
                ", America=" + America +
                ", String=" + String +
                ", Integer=" + Integer +
                '}';
    }

    @Override
    public void eat() {
        System.out.println("吃火锅");
    }
}
